<script setup lang="ts">
import { ref, computed } from 'vue'
import { menuStore } from '@/store/menu'

const store = menuStore()
const count = ref(0)
const addBtn = () => {
    store.setCount(++count.value)
}
const showCount = computed(() => {
    return store.getCount
})

</script>

<template>
    <h1>{{ showCount }}</h1>

    <el-button type="primary" @click="addBtn">新增</el-button>
</template>